from django.conf.urls import url
from orders import views

urlpatterns = [
    #订单确认
    url(r'^place$',views.PlaceOrderView.as_view(),name='place'),

    #提交订单　
    url(r'^commit$',views.CommitOrderView.as_view(),name='commit'),

    #支付
    url(r'^pay$',views.PayView.as_view(),name='pay'),

    #查询订单
    url(r'^checkpay$',views.CheckPayView.as_view(),name='checkpay'),

    # 订单信息页面
    url(r'^(?P<page>\d+)$',views.UserOrderView.as_view(), name='info'),

    #支付请求
    url(r'^pay$',views.PayView.as_view(),name='pay'),

    url(r'^checkpay$', views.CheckPayView.as_view(), name='checkpay'),

    url('^comment/(?P<order_id>\d+)$', views.CommentView.as_view(), name="comment")

]